package com.wyx.zbf.common.utils;

/**
 * @Author:Wuyixu
 * @Description: 管理系统中所有的异常状态
 * @Date:created in 20:50 2020/11/30
 * @Modified By:
 */
public enum  AllStatusEnum {
    NO_lOGIN("未登录",1001),
    NO_AUTH("没有权限",1002),
    LOGIN_SUCCESS("登录成功",1006),
    LOGIN_FAIRLE("登录失败",1003),
    LOGINOUT_SUCCESS("登出成功",1004),
    LOGINOUT_FAIRLE("登出失败",1005),
    TOKEN_HAS_EXPIPE("登录已过期,请重新登录",1007),
    NO_ACTIVITE("账户未激活",1008),
    ACCOUNT_FREEZE("账户冻结",1009),
    REQUEST_SUCCESS("访问成功",1010),
    REQUEST_FAIRLE("访问失败",1020);
    private String msg;
    private int code;
    AllStatusEnum(String msg,int code){
        this.msg=msg;
        this.code=code;
    }
    public String getMsg(){
        return msg;
    }
    public int getCode(){
        return code;
    }
}
